#!/bin/bash
#
# bl-menu-switch v0.02
# Created by martix
# Intended to work with Openbox and bl-obmenu-generator on the GNU/Linux distribution BunsenLabs
# (C) martix GNU GPLv3 2017-2018
#
# Switch back and forth between the menu generated by bl-obmenu-generator and the Openbox menu
# by changing ~/.config/openbox/menu.xml.bak to menu.xml
#
# Rename menu.xml to .xml.bak.bak first, then menu.xml.bak to menu.xml and finally menu.xml.bak.bak to menu.xml.bak; restart openbox 

mv ~/.config/openbox/menu.xml ~/.config/openbox/menu.xml.bak.bak && mv ~/.config/openbox/menu.xml.bak ~/.config/openbox/menu.xml && mv ~/.config/openbox/menu.xml.bak.bak ~/.config/openbox/menu.xml.bak && openbox --restart

